package com.weijian.dal.dto.cart;

import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * 添加购物车请求参数
 * 
 * @author weijian
 */
@Data
public class AddCartRequest {
    
    @NotNull(message = "课程ID不能为空")
    private Long courseId;
    
    @Min(value = 1, message = "购买数量至少为1")
    private Integer quantity = 1;
}